import { createApp } from 'vue'
import App from './App.vue'
//引入pinia
import { createPinia } from 'pinia'
//引入router
import { router } from './router/router.js'

//时间处理
import timeMaker from './utils/timeMaker'
//引入echarts
import * as echarts from 'echarts';
import { ElMessage } from 'element-plus'


const app = createApp(App)
const pinia = createPinia()
//全局挂载方法
app.config.globalProperties.timeMaker = timeMaker
app.config.globalProperties.echarts = echarts
app.config.globalProperties.ElMessage = ElMessage

// 全局组件挂载
// app.component('DictTag', DictTag)

app.use(pinia)
app.use(router)

//这里要注意最后挂载 否则报错
app.mount('#app')
